package com.nuc.thread.create;

import lombok.extern.slf4j.Slf4j;

/**
 * @author LM
 * @date 2021/5/4 18:49
 * @destription:
 */
@Slf4j
public class CreateThread2 {
    public static void main(String[] args) {
        Runnable runnable = () -> log.debug("running");
        Thread thread = new Thread(runnable,"t1");
        thread.start();

        log.debug("main running");
    }
}
